<div class="am-u-sm-12">
    <form class="am-form" id="list-form" action="${base}/cmccCardOrder/list" method="post">
        <input type="hidden" id="keywords" name="keywords" value='${keywords!""}'/>
        <input type="hidden" id="city_id_input" name="city_id_input" value='${city_id!""}'/>
        <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
            <tbody>
            <tr>
                <th class="am-text-middle">姓名</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="name" value="${name!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
                <th class="am-text-middle">联系电话</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="phone_no"  value="${phone_no!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
            </tr>
            <tr>
                <th class="am-text-middle">写卡号码</th>
                <td>
                    <div class="am-u-sm-10">
                        <input type="text" id="card_phone_no" value="${card_phone_no!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div align='right'>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn"
                                onClick="submit_btn('search');">搜索
                        </button>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="export-btn"
                                onClick="submit_btn('export');">导出
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        if($("#keywords").val().length<1){
            var keywordsObj = {};
            keywordsObj.city_id = $("#city_id_input").val();
            var keywords = JSON.stringify(keywordsObj);
            $("#keywords").val(keywords);
        }
        if($("#city_id").prop("disabled")){
            $("#city_id").selected('disable')
        }
    });
</script>